<?php
if (!defined('TIMESTARTPAGE')) 
{
    define('TIMESTARTPAGE', microtime(true));
}
if (substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')) 
{
    @ob_start("ob_gzhandler");
}
exit;
//load config
@include "../includes/config/config.php";
//create object db
include "../includes/class_mysql.php";
include "../includes/gpc_function.php";
include "includes/functions.php" ;
include "language/language.php";
include "includes/global.php";
@require "includes/permission.php";


$table          = 'tblcategory';
$field          = 'cIntro';
$sql_select     = "select * from $table";

$rs             = $dbsql->query($sql_select);
while($result = $dbsql->fetch_array($rs))
{
    $des      = $result[$field];
    $des      = str_replace('/travis/','/',$des);
    $des      = mysql_escape_string($des);
    
    $sql_update = "update $table set $field = '$des' where iId = ".$result['iId'];
    $dbsql->query($sql_update);
}

echo 'ok';
?>